<?php 
$messaggio="";
if (isset($_GET["error"])) $messaggio="Login fallito - email/password errata";
?>
<!DOCTYPE html>
<html lang="it">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="pagina di accesso al sito contogas">
    <meta name="author" content="Sangiovanni Roberto">
    <link rel="icon" href="">

    <title>Portale GAS</title>

    <!-- Bootstrap core CSS -->
    <link href="../css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom style for this document -->
    <link href="signin.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
    body {padding-bottom: 80px}
    </style>
    <script type="text/javascript" src="../js/sha512.js"></script>
	<script type="text/javascript" src="../js/forms.js"></script>
  </head>
  
  <body>

    <div class="container">

      <form class="form-signin" action="process_login.php" method=POST>
        <h2 class="form-signin-heading">Log in</h2>
        <label for="inputEmail" class="sr-only">Email address</label>
        <input name="email" type="email" id="inputEmail" class="form-control" placeholder="Indirizzo email" required autofocus>
        <label for="inputPassword" class="sr-only">Password</label>
        <input name="p" type="password" id="password" class="form-control" placeholder="Password" required>
        <div class="checkbox">
          <label>
            <input type="checkbox" name="remember"> Remember me
          </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit" onclick="formhash(this.form, this.form.password);">Accedi</button>        
        <?php if (!empty($messaggio)) echo "<div class='alert alert-danger' role='alert'>$messaggio</div>"; 
        ?>
        <!-- <p class="text-danger"><//?php echo $messaggio?></p> -->
      </form>
	
    </div> <!-- /container -->
	
	
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../js/ie10-viewport-bug-workaround.js"></script>
    <footer class="footer" name="Info" >
      <div class="container">
      	<h1> Contatti </h1>
		<span class="glyphicon glyphicon-envelope" aria-hidden="true"> contogas@gmail.com</span><br>
		<span class="glyphicon glyphicon-earphone" aria-hidden="true"> 0818561260</span> 
      </div>
      <div class="container">
      <p>
      <h3>Seguici su:</h3> 
      <a href="#"><img src="../images/facebook-icon.png" width="40px" height="40px"></a>&nbsp;
      <a href="#"><img src="../images/twitter-icon.png" width="40px" height="40px"></a>
      </div>
      <div class="container" align-item="right">
      	<p><footer class="pfooter" style="text-align: right;font-family:'Purisa', serif;";><b style="color: red">Powered by</b><br>Sangiovanni Roberto</footer></p>
      </div>
    </footer>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="../../dist/js/bootstrap.min.js"></script>
  </body>
  
</html>
